/*
 *NOTE:Auto generated dao
*/
package com.surfilter.modules.car.dao;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.surfilter.modules.car.model.HtCarModel;
import com.surfilter.platform.base.dao.DaoBase;
import com.surfilter.platform.base.model.PageInfo;

@Repository(value="Service_carHtCarDao")
public class HtCarDao extends DaoBase<HtCarModel>{

	@Resource(name = "surfilterSqlMapClient")
	private SqlMapClient sqlMapClient;

	public void initSqlMapClient() {
		this.setSqlMapClient(sqlMapClient);
	}
	
		public java.lang.Integer addHtCar(HtCarModel htCarModel) {
		java.lang.Integer key = (java.lang.Integer) this.addObject("addHtCar", htCarModel);
		return key;
	}
	
	public void chgHtCar(HtCarModel htCarModel) {
		this.updateObject("chgHtCar", htCarModel);
	}
	
	public void delHtCar(HtCarModel htCarModel) {
		this.updateObject("delHtCar", htCarModel);
	}

	public List<HtCarModel> getHtCars(HtCarModel htCarModel, PageInfo pageInfo) {
		return this.getListByObjectForPage("getHtCars", htCarModel, pageInfo);
	}
	
	public void delHtCars(List<java.lang.Integer> ids){
		this.deleteObject("delHtCars", ids);
	}
	
	public int getHtCarsCount(HtCarModel htCarModel) {
		return (Integer) this.getObjectByObject("getHtCarsCount", htCarModel);
	}
}
